package string;

public class StringDemo {
    public static void main(String[] args) {
        String a="abc123";
        String b="abc"+"123";
        System.out.println(a==b);
        String c="abc";
        String d=c+"123";
        System.out.println(a==d);
        String e=new String("abc");
        System.out.println(e==c);
        System.out.println(e.equals(c));
        System.out.println(a.length());
    }
}
